From: Carlos Garnacho Date: Mon, 6 Jul 2026 17:35:44 +0000 (+0200) Subject: lookingGlass: Add missing docstrings X-Git-Tag: archive/raspbian/50.5-1+rpi1^2~9^2^2~16 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=93e1b5f4e076fd8bda05ff12072c2c3e9cb8db03;p=gnome-shell.git lookingGlass: Add missing docstrings For some reason, eslint trips up with non-exported classes with a static initializer. Add the missing docs that somehow make it happy. Part-of: (cherry picked from commit 2b9350ed8571c2dab1b5400a3e18d0b8b0b7f1a3) --- diff --git a/js/ui/lookingGlass.js b/js/ui/lookingGlass.js index 7ba30eb95..469500816 100644 --- a/js/ui/lookingGlass.js +++ b/js/ui/lookingGlass.js @@ -54,6 +54,7 @@ const CLUTTER_DEBUG_FLAG_CATEGORIES = new Map([ // ['PickDebugFlag', { argPos: 2, exclude: [] }], ]); +/** @returns {string[]} **/ function _getAutoCompleteGlobalKeywords() { const keywords = ['true', 'false', 'null', 'new']; // Don't add the private properties of globalThis (i.e., ones starting with '_') @@ -264,6 +265,7 @@ const Notebook = GObject.registerClass({ } }); +/** @param {Any} o **/ function objectToString(o) { if (typeof o === typeof objectToString) { // special case this since the default is way, way too verbose